package com.hoshiicloud.purchase.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.purchase.Worksheet;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: hoshiicloud
 * @description: 工单服务
 * @author: Mr.wu
 * @create: 2019-07-24 17:39
 **/
@Service
public interface WorksheetService extends IService<Worksheet> {
    boolean saveBatch(List<Worksheet> list);

    Worksheet getById(Long id);

    boolean save(Worksheet entity);

    boolean updateById(Worksheet entity);

    IPage<Worksheet> page(IPage<Worksheet> page, Wrapper<Worksheet> queryWrapper);

    boolean deleteById(Worksheet entity);

    List<Worksheet> getByIds(List<Long> ids,String key);
}
